package com.breadenglish.cms.api.app.dao;

import com.breadenglish.cms.api.app.domain.db.WordDetail;

import java.util.List;

/**
 * WordDetail
 * <p>
 * User: guoyao
 * DateTime: 2015-12-22 20:06:38
 */
public interface WordDetailDao {

    /**
     * 根据主键查询WordDetail对象
     *
     * @param wordDetailId
     * @return WordDetail对象
     */
    WordDetail selectByPrimaryKey(Long wordDetailId);

    /**
     * 根据查询条件查询符合条件的WordDetail对象
     *
     * @param wordDetail
     * @return 符合条件的WordDetail对象List
     */
    List<WordDetail> select(WordDetail wordDetail);

    /**
     * 根据主键删除WordDetail对象
     *
     * @param wordDetailId
     * @return 影响条件数
     */
    int deleteByPrimaryKey(Long wordDetailId);

    /**
     * 根据条件删除符合条件的WordDetail对象
     *
     * @param wordDetail
     * @return 影响条件数
     */
    int delete(WordDetail wordDetail);

    /**
     * 插入WordDetail对象
     *
     * @param wordDetail
     * @return 影响条件数
     */
    int insert(WordDetail wordDetail);

    /**
     * 更新WordDetail对象
     *
     * @param wordDetail
     * @return 影响条件数
     */
    int update(WordDetail wordDetail);

}
